package controlSoftware.userThread;

public class Coordinate {

	double x;
	double y;
	
	public Coordinate(double x, double y) {
		this.x = x;
		this.y = y;
	}
	
	public static double ratioConvert (double num, int type){
		
		double newLength;
		
		switch (type){
			case 1:
				newLength = num/SysModel.mapRatio_x;
				break;
			case 2:
				newLength = num/SysModel.mapRatio_y;
				break;				
			default:
				newLength = num;
		}
		
		return newLength;
	}
	
	public double getX(){
		return x;
	}

	public double getY(){
		return y;
	}
}
